package com.tencreat.service.account;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tencreat.common.core.HttpResult;
import com.tencreat.common.core.domain.model.LoginUser;
import com.tencreat.common.core.domain.model.ReqIdParam;
import com.tencreat.common.core.domain.model.ReqIdsParam;
import com.tencreat.common.enums.UserType;
import com.tencreat.domain.account.AccountWithdrawAudit;
import com.tencreat.domain.account.AccountWithdrawInfo;
import com.tencreat.domain.account.CommonWithdrawConfig;
import com.tencreat.domain.account.dto.AccountWithdrawInfoDTO;
import com.tencreat.domain.account.dto.ApiWithdrawDTO;

import java.util.List;

/**
 * 用户提现基础信息Service接口
 *
 * @author tencreat
 * @date 2021-11-25
 */
public interface IAccountWithdrawInfoService extends IService<AccountWithdrawInfo> {
    /**
     * 查询用户提现基础信息
     *
     * @param id 用户提现基础信息ID
     * @return 用户提现基础信息
     */
    public AccountWithdrawInfo selectAccountWithdrawInfoById(ReqIdParam id);

    /**
     * 查询用户提现基础信息列表
     *
     * @param accountWithdrawInfo 用户提现基础信息
     * @return 用户提现基础信息集合
     */
    public List<AccountWithdrawInfo> selectAccountWithdrawInfoList(AccountWithdrawInfo accountWithdrawInfo);

    /**
     * 新增用户提现基础信息
     *
     * @param accountWithdrawInfo 用户提现基础信息
     * @return 结果
     */
    public int insertAccountWithdrawInfo(AccountWithdrawInfo accountWithdrawInfo);

    /**
     * 修改用户提现基础信息
     *
     * @param accountWithdrawInfo 用户提现基础信息
     * @return 结果
     */
    public int updateAccountWithdrawInfo(AccountWithdrawInfo accountWithdrawInfo);

    /**
     * 批量删除用户提现基础信息
     *
     * @param ids 需要删除的用户提现基础信息ID
     * @return 结果
     */
    public int deleteAccountWithdrawInfoByIds(ReqIdsParam ids);

    /**
     * 删除用户提现基础信息信息
     *
     * @param id 用户提现基础信息ID
     * @return 结果
     */
    public int deleteAccountWithdrawInfoById(ReqIdParam id);


    HttpResult<String> withdraw(ApiWithdrawDTO vo, LoginUser loginUser);

    CommonWithdrawConfig selectWithdrawInfo(Integer type, UserType userType);

    Object bandCart(AccountWithdrawInfoDTO accountWithdrawInfo);

    Object confirmBandCart(String kaptchaCode,Long id);

    Object getKaptcha(Long id);

    Object unbind(Long id);

    Object sandBandCart(AccountWithdrawInfoDTO accountWithdrawInfo);

    Object sandConfirmBandCart(String kaptchaCode,Long id);

}
